package com.sl.common.util;

import cn.hutool.core.util.StrUtil;
import lombok.SneakyThrows;

public class Assert extends cn.hutool.core.lang.Assert {


    @SneakyThrows
    public static void isTrue(boolean expression, String errorMsgTemplate, Object... params)  {
        isTrue(!expression, () -> new IllegalArgumentException(StrUtil.format(errorMsgTemplate, params)));
    }


}
